---
import Basic from "./index.astro";
import useFormula from "@/hooks/useFormula";
import fs from "fs";

export interface Props {
  id: string;
  ver: string;
  description?: string;
}

const { id, ver, description } = Astro.props;

let res = await useFormula(id, ver);
---

<h4>{description}</h4>
<Basic formula={res} />
